/**
 * Copyright (c) 2012-2014, Yang Yang <cntototo@gmail.com>
 *
 * This software may be distributed under the terms of the New BSD License.
 * See README for more details.
 */

#ifndef GLOBAL_H
#define GLOBAL_H

#include <netinet/in.h>

/**
 * struct wfs_global -- Global info for WFS
 */
struct wfs_global {
	/** Command socket */
	int cmd_sock;
	/** Command socket's local address */
	struct sockaddr_in cmd_local;
	/** Event socket */
	int evt_sock;
	/** Event socket's local address */
	struct sockaddr_in evt_local;
	/** Run in background */
	int background;
	/** File path to redirect stdout and stderr */
	char *log_file;
};

#endif /* GLOBAL_H */
